import Vue from 'vue'
import App from './App.vue'
import axios from 'axios'
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import '@/assets/css/global.css';
import echarts from "echarts"
import VCharts from 'v-charts'
import router from './router'

Vue.use(ElementUI);
Vue.use(VCharts)
Vue.config.productionTip = false
    //局部定义
    //展示图片拼接地址
    // Vue.prototype.imageapi = 'http://localhost/essadmin/public'
Vue.prototype.imageapi = 'https://ess-admin.wushun220.xyz/essadmin/public'

//上传图片拼接地址
// Vue.prototype.uploadimageapi = 'http://localhost/essadmin/public/index.php'
Vue.prototype.uploadimageapi = 'https://ess-admin.wushun220.xyz/essadmin/public/index.php'

Vue.prototype.$echarts = echarts;
Vue.prototype.$http = axios;
// axios.defaults.baseURL = 'http://localhost/essadmin/public/index.php'
axios.defaults.baseURL = 'https://ess-admin.wushun220.xyz/essadmin/public/index.php'
new Vue({
    router,
    render: h => h(App)
}).$mount('#app')